/*
 * ModuleFactory.java
 *
 * Created on 05. Juni 2007, 02:53
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package sbc.repos;

import sbc.util.*;
import java.util.*;

/**
 *
 * @author mustermark
 */
public class ModuleFactory {
    
    final static List<String> uids = new ArrayList<String>();
    /**
     * Creates a new instance of ModuleFactory
     */
    public ModuleFactory() {
    }
    
    public static Board createBoard(String id) {
        //if(uids.contains(id)) throw new NotUniqueException(id);
        //uids.add(id);
        return new Board(id);
    }
    
    public static Sensor createSensor(String id, EnumSet<Feature> f) {
        //if(uids.contains(id)) throw new NotUniqueException(id);
        //uids.add(id);
        return new Sensor(id, f);
    }
    /*public static Unit createUnit(Board b, Sensor s1, Sensor s2) {
        return new Unit(b, s1, s2);
    }*/
    
}
